export  default {

        addCart(context,payload){
            let old = context.state.addlist.find(item => item.iid === payload.iid)
            if (old){
                context.commit('addCount',old)
            }else {
                payload.conunt =1
                context.commit('addToCart',payload)
            }
        }


}